import request from '@/utils/request'

// 查询物业管理设定列表
export function listVillageAdmin(query) {
  return request({
    url: '/system/villageAdmin/list',
    method: 'get',
    params: query
  })
}

// 查询物业管理设定详细
export function getVillageAdmin(id) {
  return request({
    url: '/system/villageAdmin/' + id,
    method: 'get'
  })
}

// 新增物业管理设定
export function addVillageAdmin(data) {
  return request({
    url: '/system/villageAdmin',
    method: 'post',
    data: data
  })
}

// 修改物业管理设定
export function updateVillageAdmin(data) {
  return request({
    url: '/system/villageAdmin',
    method: 'put',
    data: data
  })
}

// 删除物业管理设定
export function delVillageAdmin(id) {
  return request({
    url: '/system/villageAdmin/' + id,
    method: 'delete'
  })
}

// 导出物业管理设定
export function exportVillageAdmin(query) {
  return request({
    url: '/system/villageAdmin/export',
    method: 'get',
    params: query
  })
}